#!/bin/bash
case "$1" in
    start)
        ambari-start.sh
        ;;
    stop)
        ambari-stop.sh
        ;;
    status)
        ambari-status.sh
        ;;
    restart)
        ambari-stop.sh
        sleep 3
        ambari-start.sh
        ;;
    *)
        echo "Usage: $0 {start|stop|status|restart}"
        exit 1
        ;;
esac
